import req1 from '@/lib/req1'
//获取考核设置列表
export function kpiListAPI(){
    return req1.get('/kpi/kpiList')
}
//新增绩效考核
export function kpiInsertAPI(data,month_no,week_no){
  return req1.post('/kpi/kpiInsert',{
    data:{
        data,month_no,week_no
    }
  })
}
//修改考核
export function kpiUpdateAPI({id,data,month_no,week_no}){
 return req1.put('/kpi/kpiUpdate',{id,data,month_no,week_no})
}
//删除考核
export function kpiDeleteAPI(id){
    return req1.delete('/kpi/kpiDelete',{id})
}
